package com.myfirstactivity.utils;

import android.util.Log;

public class Convert16to10 {
	
	public static int convert(char s){
		//Log.e(TAG+":s", s);
	int result = 0;
		if(s=='A'){
			result = 10;
		}else if(s=='B'){
			result = 11;	
		}else if(s =='C'){
			result = 12;
		}else if(s=='D'){
			result = 13;
		}else if(s =='E'){
			result = 14;
		}else if(s== 'F'){
			result = 15;
		}else {
			result = s;
		}
			return result;
				
	}
	
}
